package net.qujoy.java8.methodparam.second;

import net.qujoy.java8.domain.Apple;

/**
 * 苹果重量大于500g的
 */
public class AppleHeavyWeightPredicate implements ApplePredicate {

    @Override
    public boolean test(Apple apple) {
        return apple.getWeight() > 500;
    }

}
